package cn.interfacehomework04;

import java.util.Scanner;

public class TestWarrior {

    public static void main(String args[]) {
         System.out.println("血液值的危险界限为"+ Warrior.MAX);
         Warrior w1 = new Warrior();
         w1.blood = 30;
        System.out.println("普通战士开始战斗！");
         for (int i = 1; i <= 2; i++) {
        w1.injure(5);
         }
         w1.win();
         Warrior w2 = new BloodWarrior();
        w2.blood = 30;
        System.out.println("斗士开始战斗！");
        for (int i = 1; i <= 2; i++) {
         w1.injure(5);
        }
         w2.win();
        }
}









